package com.locationtracker.plus.app.weight.banner

import android.view.View
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.locationtracker.plus.R
import com.locationtracker.plus.data.model.bean.WelcomeBean
import com.zhpan.bannerview.BaseViewHolder

class WelcomeBannerViewHolder(view: View) : BaseViewHolder<WelcomeBean>(view) {
    override fun bindData(data: WelcomeBean, position: Int, pageSize: Int) {
        val textView = findView<ImageView>(R.id.banner_text)
        Glide.with(itemView.context)
            .load(data.stringId)
            .into(textView)
        val imageView = findView<ImageView>(R.id.banner_image)
        Glide.with(itemView.context)
            .load(data.resId)
            .into(imageView)
    }
}
